
<template>
  <div class="row">
    <el-card  >
      <el-descriptions  border direction="vertical" title="我的收藏"></el-descriptions>
      <tables :data="state.data" :is-loading="method.isLoading"></tables>
    </el-card>
  </div>
</template>
<script setup>
import {onMounted, reactive} from "vue";
import {getMyStartArticle} from "@/api/user/user";
import Tables from "@/components/tables/tables.vue";

const state =reactive({
  data:{},
  isLoading:true,
})

const method ={
init(){
  method.getMyStartArticle()
},
getMyStartArticle(){
  getMyStartArticle().then(res=>{
    state.data = res.data;
    method.isLoading= false;
  })
},
}
onMounted(()=>{
  method.init()
})

</script>

<style scoped>

</style>
